/**
 * Created by Administrator on 2016/12/5 0005.
 */
app.controller("theme",["$scope",'$location',function($scope,$location){
    $("a").click(function(e){
        e.preventDefault();
    });
    $(".remove").click(function(){
        $(".deleteTheme").show();
    });
    $scope.deleteTheme = function(){
        $(".deleteTheme").hide();
    };
    $scope.cancelDeleteTheme = function(){
        $(".deleteTheme").hide();
    };
    $('input').iCheck({
        checkboxClass: 'icheckbox_minimal-green',
        radioClass: 'iradio_minimal-green',
        increaseArea: '20%' // optional
    });
}]);
app.controller("themeTable",["$scope",function(){
    $('#themesTable').bootstrapTable({
        columns: [
            {
                checkbox: true
            }, {
                field: 'themeName',
                title: '主题名称',
                align:"left",
                halign:"center"
            },{
                field: 'themeCode',
                title: '主题编码',
                align:"left",
                halign:"center"
            },{
                field: 'isEnable',
                title: '启用',
                width:50
            }, {
                field: 'isDefault',
                title: '默认',
                width:50
            }
        ],
        data: [
            {
                themeName:"蓝色主题",
                themeCode:"blue",
                isEnable:"<input type='checkbox'>",
                isDefault:"<input type='checkbox'>"
            },{
                themeName:"蓝色主题",
                themeCode:"blue",
                isEnable:"<input type='checkbox'>",
                isDefault:"<input type='checkbox'>"
            },{
                themeName:"蓝色主题",
                themeCode:"blue",
                isEnable:"<input type='checkbox'>",
                isDefault:"<input type='checkbox'>"
            },{
                themeName:"蓝色主题",
                themeCode:"blue",
                isEnable:"<input type='checkbox'>",
                isDefault:"<input type='checkbox'>"
            },{
                themeName:"蓝色主题",
                themeCode:"blue",
                isEnable:"<input type='checkbox'>",
                isDefault:"<input type='checkbox'>"
            },{
                themeName:"蓝色主题",
                themeCode:"blue",
                isEnable:"<input type='checkbox'>",
                isDefault:"<input type='checkbox'>"
            },{
                themeName:"蓝色主题",
                themeCode:"blue",
                isEnable:"<input type='checkbox'>",
                isDefault:"<input type='checkbox'>"
            },{
                themeName:"蓝色主题",
                themeCode:"blue",
                isEnable:"<input type='checkbox'>",
                isDefault:"<input type='checkbox'>"
            },{
                themeName:"蓝色主题",
                themeCode:"blue",
                isEnable:"<input type='checkbox'>",
                isDefault:"<input type='checkbox'>"
            },{
                themeName:"蓝色主题",
                themeCode:"blue",
                isEnable:"<input type='checkbox'>",
                isDefault:"<input type='checkbox'>"
            }
        ],
        undefinedText : " ",
        showColumns :true,
        showExport : true,
        showRefresh :true,
        height:711,
        showPaginationSwitch:true,
        pageSize:15,
        pageList :[10,15,20]
    });
    $(".fixed-table-container").css("border-bottom","1px solid #aaa4a4");
}]);
